package com.service.impl;

import com.dao.DeptDao;
import com.domain.Dept;
import com.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class DeptServiceImpl implements DeptService {
    @Autowired
    private DeptDao deptDao;

    //根据ID查找部门信息
    @Override
    public Dept findById(Integer id) {
        Dept dept = deptDao.findById(id);
        return dept;
    }
}
